import React, { Component } from 'react'

export default class Todoitem extends Component {
    render() {
        return (
            <li>
                {this.props.children}
                <button onClick={this.props.edit.bind(this,this.props.id)}>编辑</button>
                <button onClick={this.props.del.bind(this,this.props.id)}>删除</button>
            </li>
        )
    }
}
